(set #betanote "\n\nMake sure to read ReadMeFirst.txt in this directory.")
(set #about (cat "\n\nWelcome to the Kuang Eleven " #K11Ver " installation.\n\nThe installer will now install some system files,Kuang Eleven scripts and installation data to your AmIRC directory.\nLastly it will launch AmIRC to finalise the installation.\n\nNOTE : PLEASE SHUT DOWN ALL AMIRC WINDOWS NOW OR THE INSTALLER WILL CLOSE THEM DOWN FOR YOU LATER!" #betanote))
(set #RunAmIRC "\n\nThe Installer will now run AmIRC to finalise the Installation.\n\Final stage installation will begin automatically upon starting AmIRC.\n\nPlease focus on the AmIRC application and enter your choices for customising Kuang Eleven.\nPlease do not connect to a server or do any other mischief ;)\nLoading AmIRC may take a few seconds...")
(set #MinVer "\n\nKuang Eleven requires AmIRC version 2.x.\nYou must upgrade your AmIRC to use this version of Kuang Eleven.")
(set #deltemp "\n\nDelete temporary installation file which has been installed on your system.\n")
(set #whereAmIRC "Locate the drawer where AmIRC is Installed.\nIf you don't have AmIRC Installed,Kuang Eleven will be useless to you.")
(set #noprogfile "\n\nI am not able to find your AmIRC program file which should be :\n")
(set #backupAmIRC "\n\nWould you like to backup your entire AmIRC directory now before installing Kuang Eleven?\nThis will probably take some diskspace!")
(set #wherebackup "Where would you like to place the backup?\nA directory called AmIRC_OLD_DIR will be created here.")
(set #workbackup "Backing up AmIRC directory to\n")
(set #MovingPlugin "Discovered AmIRC's XDCC plugin and moved it to UnusedPlugins directory.\n")
(set #MovingPluginConfiguration "Discovered AmIRC's XDCC plugin configuration and moved it to UnusedPlugins directory.\n")
(set #delold "Removing Uneeded file from old installation\n")
(set #askconfig "Select your AmIRC configuration file.\nThis is by default Default.AmIRCfg\nIf it is, click proceed now,no need to select.")
(set #launchmodfier "Launching a program that will modify your AmIRC configuration for Kuang Eleven.\nYour Config file will be backed-up.\nThis takes about 20 seconds.")
(set #wheresounddir "Locate your AmIRC sounds directory")
(set #modifyamircfg "Modifying AmIRC configuration.\nThis may take a few seconds...")
(set #nomultiview "Unable to find SYS:Utilities/Multiview to show preview of button bar")
(set #kuangwashere 1)
(set #installaliases 0)
(set #installsounds "Would you like to install the Kuang Eleven sounds to your AmIRC sounds directory?\nSome functions of Kuang Eleven may not work corectly without them.")
(set #installbuttons "Would you like to install the 24 Special buttons for the AmIRC buttons window(recommended)?\nThis will overwrite your first 24 buttons.")
(if (= (exists #newamircfg) 0) (exit (cat "Failed to create modified AmIRC configuration from :\n" #amircfg "\nto :\n" #newamircfg "\n\nA possible reason may be that the filenames have spaces in them.") (quiet)))
(copyfiles
(source #amircfg)
(dest (pathonly #amircfg))
(newname (cat (fileonly #amircfg) ".bak"))
(optional fail)
)
(complete 81)
(if (= (getenv "Kuang_11_rexxmast") 1) (startup "SYS:System/Rexxmast >NIL:" (prompt "The installer has found that RexxMast is not started on this system.\nWill now start it on your user-startup.") (help "RexxMast is essential to all AREXX scripts and should be run on startup\nWithout it,Kuang Eleven will not function AT ALL.\nUse this feature in the Installer to insert it to your user-startup.") (confirm)) )